<div id="form"></div>
<script>
var grid;
var frm=$("#form").ajajform({
	header: null
});
grid=frm.ajajform("insertWidget",null,null,{
	type: "grid",
	title: "{{!title}}",
	name: "tables",
	rowClasses: [{
		name:"table",
		columns: [
			{name: "schema", label: "{{!schema}}", width: 250 },
			{name: "name", label: "{{!table_name}}", width: 450, url: "{{action}}?mode=list&table=" }
		]
	}]
});
var tables={{JSON:tables}};
for (var i=0;i<tables.length;i++) {
	var r=tables[i];
	grid.ajajform_grid("insertRow",null,{rowClass: "table",cells:[r.schema,r.name],id:r.schema+"-"+r.name});
}
</script>

